﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Service_addmaster : AdminPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //data: "name=" + name + "&deptid=" + deptid,  
        string name = Request.Form["name"].Trim();
        string deptid = Request.Form["deptid"].Trim().Trim(',');
        string pwd = Request.Form["pwd"].Trim();

        if (!IsPostBack) {
            string result = "0";
            if (new Exam.Core.DAL.Master().Add(name,pwd, deptid,""))
                result = "1";
            Response.Write(result);
            Response.End();
        }
    }
}